package com.freesky.biz.rights.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * 发券明细
 */
@Data
@TableName("tec_rights_coupon_detail")
public class RightsCouponDetailEntity implements java.io.Serializable {

    @TableId
    private String id;

    private String receiveId;
    private String busiId;
    private String busiName;
    private String activityId;
    private String couponType;
    private String activityRuleId;
    private String appId;
    private String openId;
    private String stockId;
    private Integer amt;
    private String mobile;
    private String couponId;
    private String alipayOrderId;
    private String sendStatus;
    private String reason;
    private String usedStatus;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date consumeTime;

    private String reissueFlag;
    private String delFlag;

}
